package com.java.exer;

public class Poker {
    private PokerType type;
    private PokerPoint num;

    public Poker(PokerType type, PokerPoint num) {
        super();
        this.type = type;
        this.num = num;
    }

    public PokerType getType() {
        return type;
    }

    public void setType(PokerType type) {
        this.type = type;
    }

    public PokerPoint getNum() {
        return num;
    }

    public void setNum(PokerPoint num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return getTypeChar() + " " + num + "\tPointer:" + this.num.getVal();
    }

    //"♠","♥","♣","♦"
    private String getTypeChar() {
        switch (this.type) {
            case FK:
                return "♦";
            case RED_T:
                return "♥";
            case BLACK_T:
                return "♠";
            default:
                return "♣";
        }
    }


}
